Drops a .txt cookie into the cookies folder of the receiving computer. This can later be read to decipher its contents.

========================================================

<?php
//-------Create the cookie-------
    //These are the values of the cookie:
  $name;
  $value;
  $expiretimer; 
    //The expire timer is in seconds. After the said amount of
    //time has passed, the cookie is destroyed.
  setcookie($name, $value, $expiretimer);
    //This sets an encoded cookie, meaning the user cannot change it. You can
    //set a "raw" cookie, meaning the cookie is not encoded, by using this:
  setrawcookie($name, $value, $expiretimer);
//-------- Read the cookie -------
  $val=$_cookie["cookiename"];
    //This sets val to the value of the cookie.
//-------Delete the cookie-------
    //We have a cookie called "dumb" in our cookies folder. To remove it:
  setcookie("dumb", "", time()-500);
?>